<html>
  <head>
    <title>Exerxício 05 - Questão 04</title>
    <meta charset="UTF-8">
    <script src="resources/js/alertas.js"></script> 
    <link rel="stylesheet" type="text/css" href="resources/css/formatacoes.css">    
  </head>
  <body>

    <div id="corpo" >

      <h1>Critica no evento onSubmit</h1>

      <form id="validacao" name="validacao" method="post" action="sucesso.html">  

        <table>
          <tr>
            <td>Nome:</td>
            <td>
              <input type="text" id="nome" name="nome"> <br/>
            </td>
          </tr>

          <tr>
            <td>Endereço:</td>
            <td>
              <input type="text" id="endereco" name="endereco"><br/>
            </td>
          </tr>

          <tr>
            <td>Entrada:</td>
            <td>            
              <input type="text" size="2" maxlength="2" id="entrada_dia" onkeypress="return SomenteNumero(event)"> /
              <input type="text" size="2" maxlength="2" id="entrada_mes" onkeypress="return SomenteNumero(event)"> /
              <input type="text" size="2" maxlength="4" id="entrada_ano" onkeypress="return SomenteNumero(event)">
            </td>
          </tr>

          <tr>
            <td>Saída:</td>
            <td>              
              <input type="text" size="2" maxlength="2" id="saida_dia" onkeypress="return SomenteNumero(event)"> /
              <input type="text" size="2" maxlength="2" id="saida_mes" onkeypress="return SomenteNumero(event)"> /
              <input type="text" size="2" maxlength="4" id="saida_ano" onkeypress="return SomenteNumero(event)">
            </td> 
          </tr>  

        </table>
        <div id="botoes">
          <input id="clique" type="submit" name="clique" value="Validar" onclick="return validar()">
          <input id="limpar" type="reset" value="Apagar">

        </div>

      </form>  
    </div>

  </body>
</html>
